package com.aspose.cells;

class zbrx {
   private PivotTable c;
   private int d;
   int a;
   String b;

   zbrx(PivotTable var1) {
      this.c = var1;
      this.d = 1;
      this.a = 36;
   }

   void a(zbrx var1) {
      this.d = var1.d;
      this.a = var1.a;
   }

   boolean a(int var1) {
      return (this.a & var1) != 0;
   }

   void a(boolean var1, int var2) {
      this.a &= ~var2;
      this.a |= var1 ? var2 : 0;
   }

   void b(int var1) {
      this.c.af = false;
      this.d = var1;
   }

   int a() {
      return this.d;
   }

   void c(int var1) {
      this.c.af = false;
      this.d = var1;
      if (this.c()) {
         this.c.b.a(false, 496);
      } else {
         this.c.b.a(true, 1008);
      }

      if (this.b()) {
         this.a |= 4;
      }

   }

   boolean b() {
      switch(this.d) {
      case 2:
      case 3:
      case 4:
      case 5:
      case 6:
      case 7:
      case 8:
      case 9:
      case 10:
      case 11:
         return true;
      default:
         return false;
      }
   }

   boolean c() {
      return this.d == 1;
   }
}
